'use strict'
import Vue from 'vue'
const arrMap = {
  txtSts:{
    'S':'成功',
    'F':'失败',
    'R':'退款',
    'I':'待付款',
    'A':'作废',
    'D':'待发货',
    'T':'待收货',
    'E':'待评价'
  }
}


Vue.filter('changeToText', function (value,mapValue) {
  let keys = Object.keys(arrMap)
  let key = keys.find(v=>v==mapValue)
  return key ? arrMap[key][value] :value
})
